import request from '@/plugins/request'
//人员列表
export function GetList (data) {
    return request({
        url: "/v1/member/index/get-list",
        method: "get",
        params: data,
    })
}
//新增人员
export function memberAdd (data) {
    return request({
        url: "/v1/member/index/member-add",
        method: "post",
        data,
    })
}
//删除人员
export function memberDel (data) {
    return request({
        url: "/v1/member/index/member-del",
        method: "post",
        data,
    })
}
//编辑人员
export function memberEdit (data) {
    return request({
        url: "/v1/member/index/member-edit",
        method: "post",
        data,
    })
}

//角色下拉列表
export function selectInfo (data) {
    return request({
        url: "/v1/member/index/select-info",
        method: "get",
        params: data,
    })
}
//标签设置
//标签列表
export function tagList (data) {
    return request({
        url: "/v1/base/tag/index",
        method: "get",
        params: data,
    })
}
//标签新增
export function createTag (data) {
    return request({
        url: "/v1/base/tag/create-tag",
        method: "post",
        data,
    })
}
//标签编辑
export function updateTag (data) {
    return request({
        url: "/v1/base/tag/update-tag",
        method: "post",
        data,
    })
}
//标签删除

export function deleteTag (data) {
    return request({
        url: "/v1/base/tag/delete-tag",
        method: "post",
        data,
    })
}
//班次设置
//班次列表
export function planworkList (data) {
    return request({
        url: "/v1/base/plan-work/index",
        method: "get",
        params: data,
    })
}
//班次新增、编辑
export function updatePlanWork (data) {
    return request({
        url: "/v1/base/plan-work/update-plan-work",
        method: "post",
        data,
    })
}
//班次删除
export function deletePlanwork (data) {
    return request({
        url: "/v1/base/plan-work/delete-plan-work",
        method: "post",
        data,
    })
}
//默认班次
export function planworkDefault (data) {
    return request({
        url: "/v1/base/plan-work/plan-work-default",
        method: "get",
        params: data,
    })
}
//默认班次编辑
export function updateplanworkDefault (data) {
    return request({
        url: "/v1/base/plan-work/update-plan-work-default",
        method: "post",
        data,
    })
}
//基础设置
//基础设置
export function infoHospital (data) {
    return request({
        url: "/v1/base/hospital/index",
        method: "get",
        params: data,
    })
}
//基础设置编辑
export function updateHospital (data) {
    return request({
        url: "/v1/base/hospital/update-hospital",
        method: "post",
        data,
    })
}
//首页设置
//首页设置-广告图列表
export function adpicIndex (data) {
    return request({
        url: "/v1/base/ad-pic/index",
        method: "get",
        params: data,
    })
}
//首页设置-广告图新增、编辑
export function updateadPic (data) {
    return request({
        url: "/v1/base/ad-pic/update-ad-pic",
        method: "post",
        data,
    })
}
//首页设置--广告图删除
export function deleteadPic (data) {
    return request({
        url: "/v1/base/ad-pic/delete-ad-pic",
        method: "post",
        data,
    })
}

//首页设置-快捷导航列表
export function navbarIndex (data) {
    return request({
        url: "/v1/base/navbar/index",
        method: "get",
        params: data,
    })
}
//首页设置-快捷导航新增、编辑
export function updateNavbar (data) {
    return request({
        url: "/v1/base/navbar/update-navbar",
        method: "post",
        data,
    })
}
//首页设置--快捷导航删除
export function deleteNavbar (data) {
    return request({
        url: "/v1/base/navbar/delete-navbar",
        method: "post",
        data,
    })
}
//附件管理
//附件列表
export function fileIndex (data) {
    return request({
        url: "/v1/base/file/index",
        method: "get",
        params: data,
    })
}
//附件名称更新
export function updateFile (data) {
    return request({
        url: "/v1/base/file/update-file",
        method: "post",
        data,
    })
}
//附件点击上传--更新附件状态
export function updatefileTemp (data) {
    return request({
        url: "/v1/base/file/update-file-temp",
        method: "post",
        data,
    })
}
//附件删除
export function deleteFile (data) {
    return request({
        url: "/v1/base/file/delete-file",
        method: "post",
        data,
    })
}
//批量分类
export function updatefileCategory (data) {
    return request({
        url: "/v1/base/file/update-file-category",
        method: "post",
        data,
    })
}
//类别列表
export function categoryIndex (data) {
    return request({
        url: "/v1/base/category/index",
        method: "get",
        params: data,
    })
}
//类别新增、编辑
export function updateCategory (data) {
    return request({
        url: "/v1/base/category/update-category",
        method: "post",
        data,
    })
}
//类别删除
export function deleteCategory (data) {
    return request({
        url: "/v1/base/category/delete-category",
        method: "post",
        data,
    })
}